package com.chouren.goandroid.http.client;

import com.chouren.goandroid.http.comm.Charsets;
import com.chouren.goandroid.http.comm.Network;

public class HttpClientConfig {
	/* 网络状态   */
	public static final int FLAG_NET_DISABLE_ALL = Network.NetworkType.None.value;
	public static final int FLAG_NET_DISABLE_MOBILE = Network.NetworkType.Mobile.value;
	public static final int FLAG_NET_DISABLE_WIFI = Network.NetworkType.Wifi.value;
	public static final int FLAG_NET_DISABLE_OTHER = Network.NetworkType.Other.value;
	
	/* 最多重试次数   */
	public static final int DEFAULT_MAX_RETRY_TIMES = 3;
	/* 最多重定向次数   */
	public static final int DEFAULT_MAX_REDIRECT_TIMES = 10;
	/* 默认http端口   */
	public static final int DEFAULT_HTTP_PORT = 80;
	/* 默认https端口   */
	public static final int DEFAULT_HTTPS_PORT = 443;
	/* 默认超时时间   */
	public static final int DEFAULT_TIMEOUT = 20000;
	/* 默认数据buffer大小   */
	public static final int DEFAULT_BUFFER_SIZE = 4096;

	public static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
	public static final String ENCODING_GZIP = "gzip";
	public static final String REDIRECT_LOCATION = "location";

	public static final String DEFAULT_CHARSET = Charsets.UTF_8;
	
	public static boolean errorInChinese = true;
}
